import request from '@/utils/request'

// 查询公寓详情列表
export function listTbapartmentext(query) {
  return request({
    url: '/apartment/tbapartmentext/list',
    method: 'get',
    params: query
  })
}

// 查询公寓详情详细
export function getTbapartmentext(apartmentId) {
  return request({
    url: '/apartment/tbapartmentext/' + apartmentId,
    method: 'get'
  })
}

// 新增公寓详情
export function addTbapartmentext(data) {
  return request({
    url: '/apartment/tbapartmentext',
    method: 'post',
    data: data
  })
}

// 修改公寓详情
export function updateTbapartmentext(data) {
  return request({
    url: '/apartment/tbapartmentext',
    method: 'put',
    data: data
  })
}

// 删除公寓详情
export function delTbapartmentext(apartmentId) {
  return request({
    url: '/apartment/tbapartmentext/' + apartmentId,
    method: 'delete'
  })
}
